/*
 * @Date: 2023-08-09 09:24:16
 * @LastEditors: bb_c_e_f 18434367522@163.com
 * @LastEditTime: 2023-09-14 16:05:55
 * @FilePath: \part-cloud-appd:\project\company\veteran-cadre-app\src\model\index.ts
 */
import type { RoleI, SelectI } from './index.d'
import lgb from '@/static/images/registered/lgb.png'
import lgbselect from '@/static/images/registered/lgb-select.png'
import user from '@/static/images/registered/user.png'
import userselect from '@/static/images/registered/user-select.png'

import { useAppStore } from '@/stores/app-store'

const appStore = useAppStore()

export const roleList: RoleI[] = [
  {
    label: '离退休',
    subLabel: '老干部',
    tipLbale: '老干部',
    img: lgb,
    selectImg: lgbselect,
    disabled: false,
    type: 0,
  },
  {
    label: '第三方',
    subLabel: '服务商',
    tipLbale: '服务商',
    img: user,
    selectImg: userselect,
    disabled: false,
    type: 1,
  },
  {
    label: '外部',
    subLabel: '服务商',
    tipLbale: '服务商',
    img: user,
    selectImg: userselect,
    disabled: false,
    type: 2,
  },
]

export function getRole(type: number): RoleI {
  return roleList.filter(e => e.type === type)[0]
}

export const pageType: SelectI[] = [
  {
    label: '注册',
    value: 0,
  },
  {
    label: '个人信息',
    value: 1,
  },
]
